package com.clwl.supervise.superviseapp.entity.risk;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.StringSerializer;
import lombok.Data;

import java.io.Serializable;

/**
    * 静态分值评定参考分值
    */
@Data
@TableName(value = "JG_STATIC_SCORE")
//@KeySequence("JG_STATIC_SCORE_SQE")
public class JgStaticScore implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 评分项目id
     */
    @TableField(value = "STATIC_PROJECT_ID")
    private Long staticProjectId;

    /**
     * 分值名称
     */
    @TableField(value = "SCORE_NAME")
    private String scoreName;

    /**
     * 分值分数
     */
    @JsonSerialize(using = StringSerializer.class)
    @TableField(value = "SCORE_VALUE")
    private Double scoreValue;

    /**
     * 排序
     */
    @TableField(value = "SORT")
    private Long sort;

    /**
     * 是否选中：1-是，0-否
     */
    @TableField(value = "IS_SELECT")
    private String isSelect;

    @TableField(exist = false )
    private boolean is_selected;

    @TableField(exist = false )
    private Double value;


    @TableField(exist = false )
    private String text;

    private static final long serialVersionUID = 1L;
}
